package com.jvm.classloader.jdbc;

import java.sql.DriverManager;
import java.sql.SQLException;

/**
 * DemoDebug..
 *
 * @author Lizhong
 * @date 2019/7/24
 */
public class DemoDebug {
    public static void main(String[] args) {
        System.out.println(Thread.currentThread().getContextClassLoader());
        try {
            // Class.forName("com.mysql.jdbc.Driver");
     /*       CustomeLoad customeLoad = new CustomeLoad();
            Class<?> aClass = customeLoad.loadClass("com.mysql.jdbc.Driver");
            ClassLoader classLoader = aClass.getClassLoader();
            System.out.println(classLoader);*/
            // Class.forName("com.mysql.jdbc.Driver");

            DriverManager.getConnection("jdbc:mysql://localhost:3306/test", "root", "rootroot");
        } catch (SQLException e) {
            e.printStackTrace();
        }


    }}
